<extend name="Public/common" />
<tagLib name="Editor"/>
<block name="body">
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>楼宇小区管理</h3>
      <ul class="tab-base">
        	<li><a href="{:U('index')}"><span>列表</span></a></li>
	        <li><a href="JavaScript:void(0);" class="current"><span>新增</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form id="form1" method="post" enctype="multipart/form-data" name="form1">
    <table class="table tb-type2">
      <tbody>
        <tr class="noborder">
          <td colspan="2" class="required"><label class="validation" for="region_name">名称:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input type="text" value="" name="region_name" id="region_name" class="txt"></td>
          <td class="vatop tips">楼宇，小区，学校的名称</td>
        </tr>
        <tr>
          <td colspan="2" class="required"><label for="region_content">详细地址:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input type="text" value="" name="region_content" id="region_content" class="txt"></td>
          <td class="vatop tips">详细地址</td>
        </tr>

        <tr>
          <td colspan="2" class="required"><label for="lng">经度:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input type="text" value="" name="lng" id="lng" class="txt"></td>
          <td class="vatop tips">经度</td>
        </tr>
        <tr>
          <td colspan="2" class="required"><label for="lat">纬度:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input type="text" value="" name="lat" id="lat" class="txt"></td>
          <td class="vatop tips">纬度</td>
        </tr>

        <tr>
          <td colspan="2" class="required"><label class="validation" for="courier_name">快递员（跑男）姓名:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input type="text" value="" name="courier_name" id="courier_name" class="txt"></td>
          <td class="vatop tips">该楼绑定的派送快递员（跑男），该楼的订单都由他派送</td>
        </tr>

        <tr>
          <td colspan="2" class="required"><label class="validation" for="courier_phone">快递员（跑男）电话:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input type="text" value="" name="courier_phone" id="courier_phone" class="txt"></td>
          <td class="vatop tips">该楼绑定的派送快递员（跑男），该楼的订单都由他派送</td>
        </tr>
        <tr class="noborder">
          <td colspan="2" class="required"><label for="region_remark">备注:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><textarea name="region_remark" rows="6" class="tarea"></textarea></td>
          <td class="vatop tips"></td>
        </tr>
      </tbody>
      <tfoot>
        <tr class="tfoot">
          <td colspan="15" ><a href="JavaScript:void(0);" class="btn" id="submit"><span>提交</span></a></td>
        </tr>
      </tfoot>
    </table>
  </form>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$('#form1').validate({
        errorPlacement: function(error, element){
			error.appendTo(element.parent().parent().prev().find('td:first'));
        },
        rules : {
        	region_name : {
                required : true
            }
        },
        messages : {
        	region_name : {
                required : "名称必须填写"
            }
        }
    });
	$("#submit").click(function() {
		if ($("#form1").valid()) {
			$("#form1").submit();
		}
	});
});
</script>
</block>